import { ref, computed } from 'vue'
import { defineStore } from 'pinia'


// 搜索值传递
export const useSearchStore = defineStore('search', () => {
  const value = ref('')

  function setValue(v: string): void {
    value.value = v
  }

  return {
    value,
    setValue
  }

})